package com.edu.zut.hb.software.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ifax
 * @since 2021-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ks_mqmsg")
@ApiModel(value="Mqmsg对象", description="")
public class Mqmsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息唯一id")
    @TableId(value = "msgid", type = IdType.AUTO)
    private Integer msgid;

    private String pubid;

    private String pubname;

    private String msgtext;

    private String pubtime;



    public Mqmsg(String pubid, String pubname, String msgtext) {
        this.pubid = pubid;
        this.pubname = pubname;
        this.msgtext = msgtext;
    }
}
